package com.wang.interview.designmode.strategy;

/**
 * @author: wang
 * @date: 2021/8/1 20:07
 * @description:
 */
public class Client {
    public static void main(String[] args) {
        Function1 function1 = new Function1Impl();
        Function1 function2 = new Function1Impl2();
        Function2 function3 = new Function2Impl();
        Function2 function4 = new Function2Impl2();
        Chinese chinese = new Chinese(function1,function3);
        Japanese japanese = new Japanese(function2, function4);

        chinese.otherFunction();
        chinese.sleep();

        japanese.otherFunction();
        japanese.sleep();
    }
}
